Delete.
authorHavoc Pennington <hp@redhat.com>
Thu, 15 Mar 2001 19:02:23 +0000 (19:02 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Thu, 15 Mar 2001 19:02:23 +0000 (19:02 +0000)
2001-03-14  Havoc Pennington  <hp@redhat.com>

        * gtk/gtkdata.h, gtk/gtkdata.c: Delete.

* gtk/gtk.h: remove gtkdata.h

* gtk/Makefile.am: remove gtkdata

* gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
not "disconnect" on the adjustments.

* gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
GtkData

* gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
not GtkData

* configure.in: handle case where X render exists, but Pango lacks
Xft support.

2001-03-14  Havoc Pennington  <hp@redhat.com>

* Makefile.am (gdk-pixbuf-marshal.c): Use different temporary file
from gdk-pixbuf-marshal.h, fixes parallel makes.

2001-03-14  Havoc Pennington  <hp@redhat.com>

* gtk/gtk-docs.sgml: remove gtkdata, gtktreemodelsimple

* gtk/gtk.types: remove gtk_data_get_type

29 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
docs/reference/ChangeLog
docs/reference/gdk-pixbuf/gdk-pixbuf.hierarchy
docs/reference/gdk/tmpl/gdk-unused.sgml
docs/reference/gdk/tmpl/input_contexts.sgml
docs/reference/gdk/tmpl/input_methods.sgml
docs/reference/gtk/gtk-docs.sgml
docs/reference/gtk/gtk.hierarchy
docs/reference/gtk/gtk.types
docs/reference/gtk/tmpl/gtk-unused.sgml
docs/reference/gtk/tmpl/gtkdata.sgml
gdk-pixbuf/ChangeLog
gdk-pixbuf/Makefile.am
gtk/Makefile.am
gtk/gtk.h
gtk/gtkadjustment.c
gtk/gtkadjustment.h
gtk/gtkdata.c [deleted file]
gtk/gtkdata.h [deleted file]
gtk/gtktext.c
gtk/gtktooltips.c
gtk/gtktooltips.h

index 9ad514a957279124b4d1da4893ff43336da43a82..97f2170127eac4fb9a815df1eb0809ea0af730b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+2001-03-14  Havoc Pennington  <hp@redhat.com>
+
+        * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
+       
+       * gtk/gtk.h: remove gtkdata.h
+
+       * gtk/Makefile.am: remove gtkdata
+       
+       * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
+       not "disconnect" on the adjustments.
+       
+       * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
+       GtkData
+
+       * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
+       not GtkData
+
+       * configure.in: handle case where X render exists, but Pango lacks
+       Xft support.
+       
 2001-03-15 Alexander Larsson  <alexl@redhat.com>
 
        * gtk/gtktoolbar.[ch]:
index 9ad514a957279124b4d1da4893ff43336da43a82..97f2170127eac4fb9a815df1eb0809ea0af730b1 100644 (file)
@@ -1,3 +1,23 @@
+2001-03-14  Havoc Pennington  <hp@redhat.com>
+
+        * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
+       
+       * gtk/gtk.h: remove gtkdata.h
+
+       * gtk/Makefile.am: remove gtkdata
+       
+       * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
+       not "disconnect" on the adjustments.
+       
+       * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
+       GtkData
+
+       * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
+       not GtkData
+
+       * configure.in: handle case where X render exists, but Pango lacks
+       Xft support.
+       
 2001-03-15 Alexander Larsson  <alexl@redhat.com>
 
        * gtk/gtktoolbar.[ch]:
index 9ad514a957279124b4d1da4893ff43336da43a82..97f2170127eac4fb9a815df1eb0809ea0af730b1 100644 (file)
@@ -1,3 +1,23 @@
+2001-03-14  Havoc Pennington  <hp@redhat.com>
+
+        * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
+       
+       * gtk/gtk.h: remove gtkdata.h
+
+       * gtk/Makefile.am: remove gtkdata
+       
+       * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
+       not "disconnect" on the adjustments.
+       
+       * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
+       GtkData
+
+       * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
+       not GtkData
+
+       * configure.in: handle case where X render exists, but Pango lacks
+       Xft support.
+       
 2001-03-15 Alexander Larsson  <alexl@redhat.com>
 
        * gtk/gtktoolbar.[ch]:
index 9ad514a957279124b4d1da4893ff43336da43a82..97f2170127eac4fb9a815df1eb0809ea0af730b1 100644 (file)
@@ -1,3 +1,23 @@
+2001-03-14  Havoc Pennington  <hp@redhat.com>
+
+        * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
+       
+       * gtk/gtk.h: remove gtkdata.h
+
+       * gtk/Makefile.am: remove gtkdata
+       
+       * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
+       not "disconnect" on the adjustments.
+       
+       * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
+       GtkData
+
+       * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
+       not GtkData
+
+       * configure.in: handle case where X render exists, but Pango lacks
+       Xft support.
+       
 2001-03-15 Alexander Larsson  <alexl@redhat.com>
 
        * gtk/gtktoolbar.[ch]:
index 9ad514a957279124b4d1da4893ff43336da43a82..97f2170127eac4fb9a815df1eb0809ea0af730b1 100644 (file)
@@ -1,3 +1,23 @@
+2001-03-14  Havoc Pennington  <hp@redhat.com>
+
+        * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
+       
+       * gtk/gtk.h: remove gtkdata.h
+
+       * gtk/Makefile.am: remove gtkdata
+       
+       * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
+       not "disconnect" on the adjustments.
+       
+       * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
+       GtkData
+
+       * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
+       not GtkData
+
+       * configure.in: handle case where X render exists, but Pango lacks
+       Xft support.
+       
 2001-03-15 Alexander Larsson  <alexl@redhat.com>
 
        * gtk/gtktoolbar.[ch]:
index 9ad514a957279124b4d1da4893ff43336da43a82..97f2170127eac4fb9a815df1eb0809ea0af730b1 100644 (file)
@@ -1,3 +1,23 @@
+2001-03-14  Havoc Pennington  <hp@redhat.com>
+
+        * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
+       
+       * gtk/gtk.h: remove gtkdata.h
+
+       * gtk/Makefile.am: remove gtkdata
+       
+       * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
+       not "disconnect" on the adjustments.
+       
+       * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
+       GtkData
+
+       * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
+       not GtkData
+
+       * configure.in: handle case where X render exists, but Pango lacks
+       Xft support.
+       
 2001-03-15 Alexander Larsson  <alexl@redhat.com>
 
        * gtk/gtktoolbar.[ch]:
index 9ad514a957279124b4d1da4893ff43336da43a82..97f2170127eac4fb9a815df1eb0809ea0af730b1 100644 (file)
@@ -1,3 +1,23 @@
+2001-03-14  Havoc Pennington  <hp@redhat.com>
+
+        * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
+       
+       * gtk/gtk.h: remove gtkdata.h
+
+       * gtk/Makefile.am: remove gtkdata
+       
+       * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
+       not "disconnect" on the adjustments.
+       
+       * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
+       GtkData
+
+       * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
+       not GtkData
+
+       * configure.in: handle case where X render exists, but Pango lacks
+       Xft support.
+       
 2001-03-15 Alexander Larsson  <alexl@redhat.com>
 
        * gtk/gtktoolbar.[ch]:
index 12faa999a5c9bf65c0131dff8f0c7a59ec792750..baabd258147f6706d57ecb5cedb669b9f6575f21 100644 (file)
@@ -440,6 +440,12 @@ if test "x$gdktarget" = "xx11"; then
       AC_CHECK_LIB(Xft, XftFontOpen, have_xft=true, :, -lXrender -lXext $X_LIBS $FREETYPE_LIBS)
     ,:,-lXext $X_LIBS)
 
+    ## be sure we also have Pango built with xft support
+    if ! $PKG_CONFIG --exists pangoxft ; then
+        have_xft=false
+        AC_MSG_WARN([X render extension found, but Pango lacks Xft support])        
+    fi
+
     if $have_xft = 'true' ; then
       X_LIBS="-lXft -lXrender -lXext $FREETYPE_LIBS $X_LIBS"
       AC_DEFINE(HAVE_XFT)
@@ -447,7 +453,7 @@ if test "x$gdktarget" = "xx11"; then
   fi
 
   AC_SUBST(XFT_LIBS)
-  AM_CONDITIONAL(HAVE_XFT, $have_xft) 
+  AM_CONDITIONAL(HAVE_XFT, $have_xft)
 
   # Check for XIM support.
 
index 3a2311e96d957dd8b06d6e5757953a226aac8e2e..397cb72d79c1d9c70fd37af9757ace3160397b72 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-14  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtk-docs.sgml: remove gtkdata, gtktreemodelsimple
+
+       * gtk/gtk.types: remove gtk_data_get_type
+
 Wed Mar  7 23:58:53 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/tmpl/gtkwidget.sgml: Document ::hierarchy-changed.
index 7346c3efc467e5f8b0bf31b13e2956be53642ab3..9751e8416434ebb412988a83dc1aeeefdb9619a6 100644 (file)
@@ -1,2 +1,7 @@
 GObject
+  GdkDrawable
+    GdkWindow
+    GdkDrawableImplX11
+      GdkWindowImplX11
+  GdkColormap
   GdkPixbufLoader
index b5ab803635a7894db00bed636e59a27fc9d3994c..a74714d9b8c7af241233aea218710e0127117458 100644 (file)
@@ -96,6 +96,187 @@ device. It has the following fields:
        which describe what key press events are generated
        for each macro button.
 
+<!-- ##### STRUCT GdkIC ##### -->
+<para>
+The #GdkIC struct is an opaque structure representing an input context
+for use with the global <link linkend="gdk-Input-Methods">Input Method</link>.
+</para>
+
+
+<!-- ##### STRUCT GdkICAttr ##### -->
+<para>
+The #GdkICAttr struct is used when getting and setting attributes of the
+input context. It is used together with a #GdkICAttributesType mask which
+specifies which of the fields are being set or returned.
+</para>
+
+@style: the pre-edit and status style. This attribute is required when
+creating the #GdkIC, and cannot be changed.
+@client_window: the #GdkWindow in which the input method will display its
+pre-edit and status areas or create subwindows.
+The preedit_area and status_area attributes are specified relative to this
+window. This attribute is required when creating the #GdkIC, and cannot be
+changed.
+@focus_window: the #GdkWindow which is to be used when editing text.
+gdk_im_begin() sets this attribute before starting the text input process,
+so it is normally not necessary to set it elsewhere.
+@filter_events: the mask of events that the input method requires.
+See the gdk_ic_get_events() function. This attribute is read-only and is
+never changed.
+@spot_location: the position of the insertion cursor, for use with the
+%GDK_IM_PREEDIT_POSITION style. The y coordinate specifies the baseline of
+the text.
+@line_spacing: the line spacing to be used in the pre-edit and status areas
+when displaying multi-line text.
+@cursor: the cursor to use in the input method's windows.
+If this attribute isn't set it is determined by the input method.
+@preedit_fontset: the font to use for the pre-edit area.
+If this attribute isn't set it is determined by the input method.
+@preedit_area: the area in which the input method will display pre-editing
+data, used for the %GDK_IM_PREEDIT_POSITION and %GDK_IM_PREEDIT_AREA styles.
+@preedit_area_needed: the area that the input method requests for displaying
+pre-editing data, used for the %GDK_IM_PREEDIT_POSITION and
+%GDK_IM_PREEDIT_AREA styles.
+@preedit_foreground: the foreground color to use for the pre-edit area.
+This color must already be allocated in the preedit_colormap.
+If this attribute isn't set it is determined by the input method.
+@preedit_background: the background color to use for the pre-edit area.
+This color must already be allocated in the preedit_colormap.
+If this attribute isn't set it is determined by the input method.
+@preedit_pixmap: the background pixmap to use for the pre-edit area.
+If this attribute isn't set it is determined by the input method.
+@preedit_colormap: the colormap the input method should use to allocate colors.
+The default value is the colormap of client_window.
+@status_fontset: the font to use for the status area.
+If this attribute isn't set it is determined by the input method.
+@status_area: the are that the input method will display status information in.
+This is used for the %GDK_IM_STATUS_AREA style.
+@status_area_needed: the size that the input method requests for displaying
+status information, for the %GDK_IM_STATUS_AREA style.
+@status_foreground: the foreground color to use for the status area.
+This color must already be allocated in the status_colormap.
+If this attribute isn't set it is determined by the input method.
+@status_background: the background color to use for the status area.
+This color must already be allocated in the status_colormap.
+If this attribute isn't set it is determined by the input method.
+@status_pixmap: the background pixmap to use for the status area.
+If this attribute isn't set it is determined by the input method.
+@status_colormap: the colormap the input method should use to allocate colors.
+The default value is the colormap of client_window.
+
+<!-- ##### ENUM GdkICAttributesType ##### -->
+<para>
+The #GdkICAttributesType contains a set of bit-flags which are used to
+specify which of the attributes in a #GdkICAttr are being set or returned.
+</para>
+<para>
+It also contains several combinations of the flags which specify required
+attributes for the various styles:
+<variablelist>
+<varlistentry>
+<term>%GDK_IC_ALL_REQ:</term>
+<listitem><para>
+the set of attributes required for all styles.
+</para></listitem>
+</varlistentry>
+
+<varlistentry>
+<term>%GDK_IC_PREEDIT_AREA_REQ:</term>
+<listitem><para>
+the set of additional attributes required for the
+%GDK_IM_PREEDIT_AREA pre-edit style.
+</para></listitem>
+</varlistentry>
+
+<varlistentry>
+<term>%GDK_IC_PREEDIT_POSITION_REQ:</term>
+<listitem><para>
+the set of additional attributes required for the
+%GDK_IM_PREEDIT_POSITION pre-edit style.
+</para></listitem>
+</varlistentry>
+
+<varlistentry>
+<term>%GDK_IC_STATUS_AREA_REQ:</term>
+<listitem><para>
+the set of additional attributes required for the
+%GDK_IM_STATUS_AREA status style.
+</para></listitem>
+</varlistentry>
+</variablelist>
+</para>
+
+@GDK_IC_STYLE: 
+@GDK_IC_CLIENT_WINDOW: 
+@GDK_IC_FOCUS_WINDOW: 
+@GDK_IC_FILTER_EVENTS: 
+@GDK_IC_SPOT_LOCATION: 
+@GDK_IC_LINE_SPACING: 
+@GDK_IC_CURSOR: 
+@GDK_IC_PREEDIT_FONTSET: 
+@GDK_IC_PREEDIT_AREA: 
+@GDK_IC_PREEDIT_AREA_NEEDED: 
+@GDK_IC_PREEDIT_FOREGROUND: 
+@GDK_IC_PREEDIT_BACKGROUND: 
+@GDK_IC_PREEDIT_PIXMAP: 
+@GDK_IC_PREEDIT_COLORMAP: 
+@GDK_IC_STATUS_FONTSET: 
+@GDK_IC_STATUS_AREA: 
+@GDK_IC_STATUS_AREA_NEEDED: 
+@GDK_IC_STATUS_FOREGROUND: 
+@GDK_IC_STATUS_BACKGROUND: 
+@GDK_IC_STATUS_PIXMAP: 
+@GDK_IC_STATUS_COLORMAP: 
+@GDK_IC_ALL_REQ: 
+@GDK_IC_PREEDIT_AREA_REQ: 
+@GDK_IC_PREEDIT_POSITION_REQ: 
+@GDK_IC_STATUS_AREA_REQ: 
+
+<!-- ##### ENUM GdkIMStyle ##### -->
+<para>
+A set of bit-flags used to specify the input method styles which are supported
+or which are currently in use. The flags can be divided into 2 groups, the
+pre-edit flags and the status flags.
+</para>
+<para>
+The pre-edit flags specify how pre-editing data is displayed.
+For example, this could display the text being typed in the phonetic
+alphabet before it is composed and inserted as an ideograph.
+</para>
+<para>
+The status flags specify how status information is displayed.
+The status information can be thought of as an extension of the
+standard keyboard mode indicators, such as the Caps Lock indicator.
+</para>
+<note>
+<para>
+The %GDK_IM_PREEDIT_CALLBACKS and %GDK_IM_STATUS_CALLBACKS styles are not 
+currently supported in GTK+.
+</para>
+</note>
+
+@GDK_IM_PREEDIT_AREA: The application provides the input method with an area
+in which to perform <emphasis>off-the-spot</emphasis> pre-editing.
+@GDK_IM_PREEDIT_CALLBACKS: The application registers a number of callback
+functions which are used to display pre-editing data.
+@GDK_IM_PREEDIT_POSITION: The application provides the input method with the
+position of the insertion cursor, for <emphasis>over-the-spot</emphasis>
+pre-editing. The input method creates its own window over the widget to
+display the pre-editing data.
+@GDK_IM_PREEDIT_NOTHING: The input method uses the root X window to perform
+pre-editing, so the application does not need to do anything.
+@GDK_IM_PREEDIT_NONE: No pre-editing is done by the input method, or no
+pre-editing data needs to be displayed.
+@GDK_IM_PREEDIT_MASK: A bit-mask containing all the pre-edit flags.
+@GDK_IM_STATUS_AREA: The application provides the input method with an area
+in which to display status information.
+@GDK_IM_STATUS_CALLBACKS: The applications registers a number of callback
+functions which are used to display status information.
+@GDK_IM_STATUS_NOTHING: The input method uses the root X window to display
+status information, so the application does not need to do anything.
+@GDK_IM_STATUS_NONE: The input method does not display status information.
+@GDK_IM_STATUS_MASK: A bit-mask containing all the status flags.
+
 <!-- ##### ENUM GdkPixbufAlphaMode ##### -->
 <para>
 
@@ -235,6 +416,161 @@ device. It has the following fields:
 @num_colors: 
 @Returns: 
 
+<!-- ##### FUNCTION gdk_ic_attr_destroy ##### -->
+<para>
+Destroys the given #GdkICAttr struct, freeing the allocated memory.
+</para>
+
+@attr: a #GdkICAttr struct.
+
+<!-- ##### FUNCTION gdk_ic_attr_new ##### -->
+<para>
+Creates a new #GdkICAttr struct, with all fields set to 0.
+The #GdkICAttr struct should be freed with gdk_ic_attr_destroy() when no
+longer needed.
+</para>
+
+@Returns: a new #GdkICAttr struct.
+
+<!-- ##### FUNCTION gdk_ic_destroy ##### -->
+<para>
+Destroys the input context.
+</para>
+
+@ic: a #GdkIC.
+
+<!-- ##### FUNCTION gdk_ic_get_attr ##### -->
+<para>
+Gets attributes of a #GdkIC.
+</para>
+
+@ic: a #GdkIC.
+@attr: a #GdkICAttr struct to contain the returned attributes.
+@mask: a #GdkICAttributesType mask specifying which attributes to get.
+@Returns: a #GdkICAttributesType mask specifying which of the attributes
+were not retrieved succesfully.
+
+<!-- ##### FUNCTION gdk_ic_get_events ##### -->
+<para>
+Returns the mask of events that the input method needs to function properly.
+This is typically called in a widget's realize method after creating the
+#GdkIC. The returned event mask is then combined with the widget's
+own event mask and applied using gdk_window_set_events().
+</para>
+
+@ic: a #GdkIC.
+@Returns: the mask of events that the input method needs to function
+properly.
+
+<!-- ##### FUNCTION gdk_ic_get_style ##### -->
+<para>
+Returns the pre-edit and status style of the #GdkIC.
+</para>
+
+@ic: a #GdkIC.
+@Returns: the pre-edit and status style of the #GdkIC.
+
+<!-- ##### FUNCTION gdk_ic_new ##### -->
+<para>
+Creates a new #GdkIC using the given attributes.
+</para>
+
+@attr: a #GdkICAttr struct containing attributes to use for the input context.
+@mask: a #GdkICAttributesType mask specifying which of the attributes in @attr
+are set.
+@Returns: a new #GdkIC.
+
+<!-- ##### FUNCTION gdk_ic_set_attr ##### -->
+<para>
+Sets attributes of the #GdkIC.
+</para>
+<para>
+Note that the GDK_IC_STYLE and GDK_IC_CLIENT_WINDOW attributes can only be set
+when creating the #GdkIC, and the GDK_IC_FILTER_EVENTS attribute is read-only.
+</para>
+
+@ic: a #GdkIC.
+@attr: a #GdkICAttr struct containing attributes to use for the input context.
+@mask: a #GdkICAttributesType mask specifying which of the attributes in @attr
+are set.
+@Returns: a #GdkICAttributesType mask indicating which of the attributes
+were not set successfully.
+
+<!-- ##### FUNCTION gdk_im_begin ##### -->
+<para>
+Starts editing, using the given input context and #GdkWindow.
+This should be called when the widget receives the input focus, typically in
+the widget's focus_in_event method.
+</para>
+
+@ic: a #GdkIC.
+@window: the #GdkWindow which will be receiving the key press events.
+
+<!-- ##### FUNCTION gdk_im_decide_style ##### -->
+<para>
+Decides which input method style should be used, by comparing the styles given
+in @supported_style with those of the available input method.
+</para>
+
+@supported_style: styles which are supported by the widget.
+@Returns: the best style in @supported_style that is also supported by the
+available input method.
+
+<!-- ##### FUNCTION gdk_im_end ##### -->
+<para>
+Stops editing using the input method.
+This should be called when the widget loses the input focus, typically in
+the widget's focus_out_event method.
+</para>
+
+
+<!-- ##### FUNCTION gdk_im_ready ##### -->
+<para>
+Checks if an input method is to be used for the current locale.
+If GTK+ has been compiled without support for input methods, or the current
+locale doesn't need an input method, then this will return FALSE.
+</para>
+
+@Returns: TRUE if an input method is available and should be used.
+
+<!-- ##### FUNCTION gdk_im_set_best_style ##### -->
+<para>
+Sets the best pre-edit and/or status style which should be used.
+This will affect the style chosen in gdk_im_decide_style().
+</para>
+<para>
+The order of the pre-edit styles is (from worst to best):
+%GDK_IM_PREEDIT_NONE, %GDK_IM_PREEDIT_NOTHING, %GDK_IM_PREEDIT_AREA,
+%GDK_IM_PREEDIT_POSITION, %GDK_IM_PREEDIT_CALLBACKS.
+The order of the status styles is:
+%GDK_IM_STATUS_NONE, %GDK_IM_STATUS_NOTHING, %GDK_IM_STATUS_AREA,
+%GDK_IM_STATUS_CALLBACKS.
+</para>
+<para>
+So, for example, to set the best allowed pre-edit style to %GDK_IM_PREEDIT_AREA
+you would do this:
+
+<informalexample>
+<programlisting>
+  gdk_im_set_best_style (GDK_IM_PREEDIT_AREA);
+</programlisting>
+</informalexample>
+
+Or to set the best allowed pre-edit style to %GDK_IM_PREEDIT_POSITION and the
+best allowed status style to %GDK_IM_STATUS_NOTHING you can do this:
+
+<informalexample>
+<programlisting>
+  gdk_im_set_best_style (GDK_IM_PREEDIT_POSITION | GDK_IM_STATUS_NOTHING);
+</programlisting>
+</informalexample>
+</para>
+
+@best_allowed_style: a bit-mask with the best pre-edit style and/or the best
+status style to use. If 0 is used, then the current bit-mask of all allowed
+styles is returned.
+@Returns: a bit-mask of all the styles allowed.
+
 <!-- ##### FUNCTION gdk_input_list_devices ##### -->
 <para>
 Lists all available input devices, along with their
index b655f10bb4d650108b2d664eac66cca290672d12..683017ba208b3169611d03738b2e30401e923062 100644 (file)
@@ -17,227 +17,3 @@ of how internationalized text input works in GTK+.
 
 </para>
 
-<!-- ##### STRUCT GdkIC ##### -->
-<para>
-The #GdkIC struct is an opaque structure representing an input context
-for use with the global <link linkend="gdk-Input-Methods">Input Method</link>.
-</para>
-
-
-<!-- ##### FUNCTION gdk_ic_new ##### -->
-<para>
-Creates a new #GdkIC using the given attributes.
-</para>
-
-@attr: a #GdkICAttr struct containing attributes to use for the input context.
-@mask: a #GdkICAttributesType mask specifying which of the attributes in @attr
-are set.
-@Returns: a new #GdkIC.
-
-
-<!-- ##### FUNCTION gdk_ic_destroy ##### -->
-<para>
-Destroys the input context.
-</para>
-
-@ic: a #GdkIC.
-
-
-<!-- ##### FUNCTION gdk_ic_get_events ##### -->
-<para>
-Returns the mask of events that the input method needs to function properly.
-This is typically called in a widget's realize method after creating the
-#GdkIC. The returned event mask is then combined with the widget's
-own event mask and applied using gdk_window_set_events().
-</para>
-
-@ic: a #GdkIC.
-@Returns: the mask of events that the input method needs to function
-properly.
-
-
-<!-- ##### FUNCTION gdk_ic_get_style ##### -->
-<para>
-Returns the pre-edit and status style of the #GdkIC.
-</para>
-
-@ic: a #GdkIC.
-@Returns: the pre-edit and status style of the #GdkIC.
-
-
-<!-- ##### FUNCTION gdk_ic_get_attr ##### -->
-<para>
-Gets attributes of a #GdkIC.
-</para>
-
-@ic: a #GdkIC.
-@attr: a #GdkICAttr struct to contain the returned attributes.
-@mask: a #GdkICAttributesType mask specifying which attributes to get.
-@Returns: a #GdkICAttributesType mask specifying which of the attributes
-were not retrieved succesfully.
-
-
-<!-- ##### FUNCTION gdk_ic_set_attr ##### -->
-<para>
-Sets attributes of the #GdkIC.
-</para>
-<para>
-Note that the GDK_IC_STYLE and GDK_IC_CLIENT_WINDOW attributes can only be set
-when creating the #GdkIC, and the GDK_IC_FILTER_EVENTS attribute is read-only.
-</para>
-
-@ic: a #GdkIC.
-@attr: a #GdkICAttr struct containing attributes to use for the input context.
-@mask: a #GdkICAttributesType mask specifying which of the attributes in @attr
-are set.
-@Returns: a #GdkICAttributesType mask indicating which of the attributes
-were not set successfully.
-
-
-<!-- ##### STRUCT GdkICAttr ##### -->
-<para>
-The #GdkICAttr struct is used when getting and setting attributes of the
-input context. It is used together with a #GdkICAttributesType mask which
-specifies which of the fields are being set or returned.
-</para>
-
-@style: the pre-edit and status style. This attribute is required when
-creating the #GdkIC, and cannot be changed.
-@client_window: the #GdkWindow in which the input method will display its
-pre-edit and status areas or create subwindows.
-The preedit_area and status_area attributes are specified relative to this
-window. This attribute is required when creating the #GdkIC, and cannot be
-changed.
-@focus_window: the #GdkWindow which is to be used when editing text.
-gdk_im_begin() sets this attribute before starting the text input process,
-so it is normally not necessary to set it elsewhere.
-@filter_events: the mask of events that the input method requires.
-See the gdk_ic_get_events() function. This attribute is read-only and is
-never changed.
-@spot_location: the position of the insertion cursor, for use with the
-%GDK_IM_PREEDIT_POSITION style. The y coordinate specifies the baseline of
-the text.
-@line_spacing: the line spacing to be used in the pre-edit and status areas
-when displaying multi-line text.
-@cursor: the cursor to use in the input method's windows.
-If this attribute isn't set it is determined by the input method.
-@preedit_fontset: the font to use for the pre-edit area.
-If this attribute isn't set it is determined by the input method.
-@preedit_area: the area in which the input method will display pre-editing
-data, used for the %GDK_IM_PREEDIT_POSITION and %GDK_IM_PREEDIT_AREA styles.
-@preedit_area_needed: the area that the input method requests for displaying
-pre-editing data, used for the %GDK_IM_PREEDIT_POSITION and
-%GDK_IM_PREEDIT_AREA styles.
-@preedit_foreground: the foreground color to use for the pre-edit area.
-This color must already be allocated in the preedit_colormap.
-If this attribute isn't set it is determined by the input method.
-@preedit_background: the background color to use for the pre-edit area.
-This color must already be allocated in the preedit_colormap.
-If this attribute isn't set it is determined by the input method.
-@preedit_pixmap: the background pixmap to use for the pre-edit area.
-If this attribute isn't set it is determined by the input method.
-@preedit_colormap: the colormap the input method should use to allocate colors.
-The default value is the colormap of client_window.
-@status_fontset: the font to use for the status area.
-If this attribute isn't set it is determined by the input method.
-@status_area: the are that the input method will display status information in.
-This is used for the %GDK_IM_STATUS_AREA style.
-@status_area_needed: the size that the input method requests for displaying
-status information, for the %GDK_IM_STATUS_AREA style.
-@status_foreground: the foreground color to use for the status area.
-This color must already be allocated in the status_colormap.
-If this attribute isn't set it is determined by the input method.
-@status_background: the background color to use for the status area.
-This color must already be allocated in the status_colormap.
-If this attribute isn't set it is determined by the input method.
-@status_pixmap: the background pixmap to use for the status area.
-If this attribute isn't set it is determined by the input method.
-@status_colormap: the colormap the input method should use to allocate colors.
-The default value is the colormap of client_window.
-
-<!-- ##### ENUM GdkICAttributesType ##### -->
-<para>
-The #GdkICAttributesType contains a set of bit-flags which are used to
-specify which of the attributes in a #GdkICAttr are being set or returned.
-</para>
-<para>
-It also contains several combinations of the flags which specify required
-attributes for the various styles:
-<variablelist>
-<varlistentry>
-<term>%GDK_IC_ALL_REQ:</term>
-<listitem><para>
-the set of attributes required for all styles.
-</para></listitem>
-</varlistentry>
-
-<varlistentry>
-<term>%GDK_IC_PREEDIT_AREA_REQ:</term>
-<listitem><para>
-the set of additional attributes required for the
-%GDK_IM_PREEDIT_AREA pre-edit style.
-</para></listitem>
-</varlistentry>
-
-<varlistentry>
-<term>%GDK_IC_PREEDIT_POSITION_REQ:</term>
-<listitem><para>
-the set of additional attributes required for the
-%GDK_IM_PREEDIT_POSITION pre-edit style.
-</para></listitem>
-</varlistentry>
-
-<varlistentry>
-<term>%GDK_IC_STATUS_AREA_REQ:</term>
-<listitem><para>
-the set of additional attributes required for the
-%GDK_IM_STATUS_AREA status style.
-</para></listitem>
-</varlistentry>
-</variablelist>
-</para>
-
-@GDK_IC_STYLE: 
-@GDK_IC_CLIENT_WINDOW: 
-@GDK_IC_FOCUS_WINDOW: 
-@GDK_IC_FILTER_EVENTS: 
-@GDK_IC_SPOT_LOCATION: 
-@GDK_IC_LINE_SPACING: 
-@GDK_IC_CURSOR: 
-@GDK_IC_PREEDIT_FONTSET: 
-@GDK_IC_PREEDIT_AREA: 
-@GDK_IC_PREEDIT_AREA_NEEDED: 
-@GDK_IC_PREEDIT_FOREGROUND: 
-@GDK_IC_PREEDIT_BACKGROUND: 
-@GDK_IC_PREEDIT_PIXMAP: 
-@GDK_IC_PREEDIT_COLORMAP: 
-@GDK_IC_STATUS_FONTSET: 
-@GDK_IC_STATUS_AREA: 
-@GDK_IC_STATUS_AREA_NEEDED: 
-@GDK_IC_STATUS_FOREGROUND: 
-@GDK_IC_STATUS_BACKGROUND: 
-@GDK_IC_STATUS_PIXMAP: 
-@GDK_IC_STATUS_COLORMAP: 
-@GDK_IC_ALL_REQ: 
-@GDK_IC_PREEDIT_AREA_REQ: 
-@GDK_IC_PREEDIT_POSITION_REQ: 
-@GDK_IC_STATUS_AREA_REQ: 
-
-<!-- ##### FUNCTION gdk_ic_attr_new ##### -->
-<para>
-Creates a new #GdkICAttr struct, with all fields set to 0.
-The #GdkICAttr struct should be freed with gdk_ic_attr_destroy() when no
-longer needed.
-</para>
-
-@Returns: a new #GdkICAttr struct.
-
-
-<!-- ##### FUNCTION gdk_ic_attr_destroy ##### -->
-<para>
-Destroys the given #GdkICAttr struct, freeing the allocated memory.
-</para>
-
-@attr: a #GdkICAttr struct.
-
-
index 8416b0246315d6023e17b6f870fb9a0a195736de..7346e1c5af8820b797c70d66a5a145ed089db9be 100644 (file)
@@ -86,128 +86,3 @@ global input method.
 
 </para>
 
-<!-- ##### ENUM GdkIMStyle ##### -->
-<para>
-A set of bit-flags used to specify the input method styles which are supported
-or which are currently in use. The flags can be divided into 2 groups, the
-pre-edit flags and the status flags.
-</para>
-<para>
-The pre-edit flags specify how pre-editing data is displayed.
-For example, this could display the text being typed in the phonetic
-alphabet before it is composed and inserted as an ideograph.
-</para>
-<para>
-The status flags specify how status information is displayed.
-The status information can be thought of as an extension of the
-standard keyboard mode indicators, such as the Caps Lock indicator.
-</para>
-<note>
-<para>
-The %GDK_IM_PREEDIT_CALLBACKS and %GDK_IM_STATUS_CALLBACKS styles are not 
-currently supported in GTK+.
-</para>
-</note>
-
-@GDK_IM_PREEDIT_AREA: The application provides the input method with an area
-in which to perform <emphasis>off-the-spot</emphasis> pre-editing.
-@GDK_IM_PREEDIT_CALLBACKS: The application registers a number of callback
-functions which are used to display pre-editing data.
-@GDK_IM_PREEDIT_POSITION: The application provides the input method with the
-position of the insertion cursor, for <emphasis>over-the-spot</emphasis>
-pre-editing. The input method creates its own window over the widget to
-display the pre-editing data.
-@GDK_IM_PREEDIT_NOTHING: The input method uses the root X window to perform
-pre-editing, so the application does not need to do anything.
-@GDK_IM_PREEDIT_NONE: No pre-editing is done by the input method, or no
-pre-editing data needs to be displayed.
-@GDK_IM_PREEDIT_MASK: A bit-mask containing all the pre-edit flags.
-@GDK_IM_STATUS_AREA: The application provides the input method with an area
-in which to display status information.
-@GDK_IM_STATUS_CALLBACKS: The applications registers a number of callback
-functions which are used to display status information.
-@GDK_IM_STATUS_NOTHING: The input method uses the root X window to display
-status information, so the application does not need to do anything.
-@GDK_IM_STATUS_NONE: The input method does not display status information.
-@GDK_IM_STATUS_MASK: A bit-mask containing all the status flags.
-
-<!-- ##### FUNCTION gdk_im_ready ##### -->
-<para>
-Checks if an input method is to be used for the current locale.
-If GTK+ has been compiled without support for input methods, or the current
-locale doesn't need an input method, then this will return FALSE.
-</para>
-
-@Returns: TRUE if an input method is available and should be used.
-
-
-<!-- ##### FUNCTION gdk_im_decide_style ##### -->
-<para>
-Decides which input method style should be used, by comparing the styles given
-in @supported_style with those of the available input method.
-</para>
-
-@supported_style: styles which are supported by the widget.
-@Returns: the best style in @supported_style that is also supported by the
-available input method.
-
-
-<!-- ##### FUNCTION gdk_im_set_best_style ##### -->
-<para>
-Sets the best pre-edit and/or status style which should be used.
-This will affect the style chosen in gdk_im_decide_style().
-</para>
-<para>
-The order of the pre-edit styles is (from worst to best):
-%GDK_IM_PREEDIT_NONE, %GDK_IM_PREEDIT_NOTHING, %GDK_IM_PREEDIT_AREA,
-%GDK_IM_PREEDIT_POSITION, %GDK_IM_PREEDIT_CALLBACKS.
-The order of the status styles is:
-%GDK_IM_STATUS_NONE, %GDK_IM_STATUS_NOTHING, %GDK_IM_STATUS_AREA,
-%GDK_IM_STATUS_CALLBACKS.
-</para>
-<para>
-So, for example, to set the best allowed pre-edit style to %GDK_IM_PREEDIT_AREA
-you would do this:
-
-<informalexample>
-<programlisting>
-  gdk_im_set_best_style (GDK_IM_PREEDIT_AREA);
-</programlisting>
-</informalexample>
-
-Or to set the best allowed pre-edit style to %GDK_IM_PREEDIT_POSITION and the
-best allowed status style to %GDK_IM_STATUS_NOTHING you can do this:
-
-<informalexample>
-<programlisting>
-  gdk_im_set_best_style (GDK_IM_PREEDIT_POSITION | GDK_IM_STATUS_NOTHING);
-</programlisting>
-</informalexample>
-</para>
-
-@best_allowed_style: a bit-mask with the best pre-edit style and/or the best
-status style to use. If 0 is used, then the current bit-mask of all allowed
-styles is returned.
-@Returns: a bit-mask of all the styles allowed.
-
-
-<!-- ##### FUNCTION gdk_im_begin ##### -->
-<para>
-Starts editing, using the given input context and #GdkWindow.
-This should be called when the widget receives the input focus, typically in
-the widget's focus_in_event method.
-</para>
-
-@ic: a #GdkIC.
-@window: the #GdkWindow which will be receiving the key press events.
-
-
-<!-- ##### FUNCTION gdk_im_end ##### -->
-<para>
-Stops editing using the input method.
-This should be called when the widget loses the input focus, typically in
-the widget's focus_out_event method.
-</para>
-
-
-
index 94bed15daed6e92f2960d67f959513fb4a77da56..a6206885f14a373b31672553cd27b73f5ac87737 100644 (file)
@@ -19,7 +19,6 @@
 <!entity GtkContainer SYSTEM "sgml/gtkcontainer.sgml">
 <!entity GtkCTree SYSTEM "sgml/gtkctree.sgml">
 <!entity GtkCurve SYSTEM "sgml/gtkcurve.sgml">
-<!entity GtkData SYSTEM "sgml/gtkdata.sgml">
 <!entity GtkDialog SYSTEM "sgml/gtkdialog.sgml">
 <!entity GtkDrawingArea SYSTEM "sgml/gtkdrawingarea.sgml">
 <!entity gtk-GtkEditable SYSTEM "sgml/gtkeditable.sgml">
 <!entity gtk-GtkTreeStore SYSTEM "sgml/gtktreestore.sgml">
 <!entity gtk-GtkTreeViewColumn SYSTEM "sgml/gtktreeviewcolumn.sgml">
 <!entity gtk-GtkTreeView SYSTEM "sgml/gtktreeview.sgml">
-<!entity gtk-GtkTreeModelSimple SYSTEM "sgml/gtktreemodelsimple.sgml">
 <!entity gtk-GtkCellRenderer SYSTEM "sgml/gtkcellrenderer.sgml">
 <!entity gtk-GtkCellRendererPixbuf SYSTEM "sgml/gtkcellrendererpixbuf.sgml">
 <!entity gtk-GtkCellRendererText SYSTEM "sgml/gtkcellrenderertext.sgml">
index 255c3c7dd54c88247281b6473b184825036b70a3..0919709543e5d664167365975ae739af4cb8c7ba 100644 (file)
@@ -96,12 +96,11 @@ GObject
       GtkPreview
       GtkProgress
         GtkProgressBar
-    GtkData
-      GtkAdjustment
-      GtkTooltips
+    GtkAdjustment
     GtkIMContext
       GtkIMMulticontext
     GtkItemFactory
+    GtkTooltips
   GtkTextBuffer
   GtkTextTag
   GtkTextTagTable
index dfc7230fc14c76e062fb5c3fca16b206d550d175..54b1e81c829c436ccd854c4e2d3f60c3eee8fc5d 100644 (file)
@@ -19,7 +19,6 @@ gtk_combo_get_type
 gtk_container_get_type
 gtk_ctree_get_type
 gtk_curve_get_type
-gtk_data_get_type
 gtk_dialog_get_type
 gtk_drawing_area_get_type
 gtk_entry_get_type
index a7061119f13ae2a5380ceb99112311e33a26abc7..ed4abe8fb9253d385c2a5c70d51ceb7ede302f2f 100644 (file)
@@ -247,6 +247,20 @@ Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN
 
 @a: 
 
+<!-- ##### STRUCT GtkData ##### -->
+<para>
+The #GtkData-struct struct contains no public fields.
+</para>
+
+
+<!-- ##### SIGNAL GtkData::disconnect ##### -->
+<para>
+Emitted to notify any views on the #GtkData object to disconnect from it,
+possibly because the #GtkData object is about to be destroyed.
+</para>
+
+@data: the object which received the signal.
+
 <!-- ##### SIGNAL GtkEditable::activate ##### -->
 <para>
 Indicates that the user has activated the widget
index e24459d5d2d81e84dc82a870e5e72334de1a8f2b..09e9d453cfd5df9e14b9c12cd84607732d3f0807 100644 (file)
@@ -22,17 +22,3 @@ before the #GtkData is destroyed.
 
 </para>
 
-<!-- ##### STRUCT GtkData ##### -->
-<para>
-The #GtkData-struct struct contains no public fields.
-</para>
-
-
-<!-- ##### SIGNAL GtkData::disconnect ##### -->
-<para>
-Emitted to notify any views on the #GtkData object to disconnect from it,
-possibly because the #GtkData object is about to be destroyed.
-</para>
-
-@data: the object which received the signal.
-
index 7068bacf5168dc73eab243a27e8769b74d5a48e7..5cf930a8177911e70ec3e811f174b9350c20eecd 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-14  Havoc Pennington  <hp@redhat.com>
+
+       * Makefile.am (gdk-pixbuf-marshal.c): Use different temporary file
+       from gdk-pixbuf-marshal.h, fixes parallel makes.
+
 Thu Mar  1 04:01:57 2001  Tim Janik  <timj@gtk.org>
 
        * test-gdk-pixbuf.c: fixed includes.
index b6ff3143b2a05873876130ff7923bbe085c59095..f7c9390e733dd495f906123012c854345202c410 100644 (file)
@@ -241,6 +241,6 @@ gdk-pixbuf-marshal.h: gdk-pixbuf-marshal.list
 
 gdk-pixbuf-marshal.c: gdk-pixbuf-marshal.list
        cd $(srcdir) \
-       && glib-genmarshal --prefix=gdk_pixbuf_marshal gdk-pixbuf-marshal.list --body >> xgen-gmh \
-       && (cmp -s xgen-gmh gdk-pixbuf-marshal.c || cp xgen-gmh gdk-pixbuf-marshal.c) \
-       && rm -f xgen-gmh xgen-gmh~
+       && glib-genmarshal --prefix=gdk_pixbuf_marshal gdk-pixbuf-marshal.list --body >> xgen-gmc \
+       && (cmp -s xgen-gmc gdk-pixbuf-marshal.c || cp xgen-gmc gdk-pixbuf-marshal.c) \
+       && rm -f xgen-gmc xgen-gmc~
index e9feac73e4ed4e692f2a49dd4f9baf41dcc66fdd..623759da913768f3f17c98017cd29187f2753d94 100644 (file)
@@ -79,7 +79,6 @@ gtk_public_h_sources = @STRIP_BEGIN@ \
        gtkcellrenderertextpixbuf.h     \
        gtkcellrenderertoggle.h \
        gtkcellrendererpixbuf.h \
-       gtkdata.h               \
        gtkdebug.h              \
        gtkdialog.h             \
        gtkdnd.h                \
@@ -238,7 +237,6 @@ gtk_c_sources = @STRIP_BEGIN@   \
        gtkcontainer.c          \
        gtkctree.c              \
        gtkcurve.c              \
-       gtkdata.c               \
        gtkdialog.c             \
        gtkdnd.c                \
        gtkdrawingarea.c        \
index f1676ca08419eec52c75e79e41cbdeb7b87522ca..c1df20b2adbbb73cc7306311a7a7ec95c174c93d 100644 (file)
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -58,7 +58,6 @@
 #include <gtk/gtkcontainer.h>
 #include <gtk/gtkctree.h>
 #include <gtk/gtkcurve.h>
-#include <gtk/gtkdata.h>
 #include <gtk/gtkdialog.h>
 #include <gtk/gtkdnd.h>
 #include <gtk/gtkdrawingarea.h>
index a23aa3e8042b51769e968ead6d58f213c73d9abd..c5cc64f966aabfcc81b26d1dd947438ef13f819a 100644 (file)
@@ -61,7 +61,7 @@ gtk_adjustment_get_type (void)
         (GtkClassInitFunc) NULL,
       };
 
-      adjustment_type = gtk_type_unique (GTK_TYPE_DATA, &adjustment_info);
+      adjustment_type = gtk_type_unique (GTK_TYPE_OBJECT, &adjustment_info);
     }
 
   return adjustment_type;
index 01df90417666905d487fadd85ccff286d8527c8b..3a9a48d46e1aa5e52edff9aad0cba3ee756b51f5 100644 (file)
@@ -29,7 +29,7 @@
 
 
 #include <gdk/gdk.h>
-#include <gtk/gtkdata.h>
+#include <gtk/gtkobject.h>
 
 
 #ifdef __cplusplus
@@ -50,7 +50,7 @@ typedef struct _GtkAdjustmentClass  GtkAdjustmentClass;
 
 struct _GtkAdjustment
 {
-  GtkData data;
+  GtkObject parent_instance;
   
   gfloat lower;
   gfloat upper;
@@ -62,7 +62,7 @@ struct _GtkAdjustment
 
 struct _GtkAdjustmentClass
 {
-  GtkDataClass parent_class;
+  GtkObjectClass parent_class;
   
   void (* changed)      (GtkAdjustment *adjustment);
   void (* value_changed) (GtkAdjustment *adjustment);
diff --git a/gtk/gtkdata.c b/gtk/gtkdata.c
deleted file mode 100644 (file)
index 1b7d677..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-/* GTK - The GIMP Toolkit
- * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-/*
- * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
- * file for a list of people on the GTK+ Team.  See the ChangeLog
- * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
- */
-
-#include "gtkdata.h"
-#include "gtksignal.h"
-
-
-enum {
-  DISCONNECT,
-  LAST_SIGNAL
-};
-
-
-static void gtk_data_class_init (GtkDataClass *klass);
-
-
-static guint data_signals[LAST_SIGNAL] = { 0 };
-
-
-GtkType
-gtk_data_get_type (void)
-{
-  static GtkType data_type = 0;
-
-  if (!data_type)
-    {
-      static const GtkTypeInfo data_info =
-      {
-       "GtkData",
-       sizeof (GtkData),
-       sizeof (GtkDataClass),
-       (GtkClassInitFunc) gtk_data_class_init,
-       (GtkObjectInitFunc) NULL,
-       /* reserved_1 */ NULL,
-        /* reserved_2 */ NULL,
-        (GtkClassInitFunc) NULL,
-      };
-
-      data_type = gtk_type_unique (gtk_object_get_type (), &data_info);
-    }
-
-  return data_type;
-}
-
-static void
-gtk_data_class_init (GtkDataClass *class)
-{
-  GtkObjectClass *object_class;
-
-  object_class = (GtkObjectClass*) class;
-
-  data_signals[DISCONNECT] =
-    gtk_signal_new ("disconnect",
-                    GTK_RUN_FIRST,
-                    GTK_CLASS_TYPE (object_class),
-                    GTK_SIGNAL_OFFSET (GtkDataClass, disconnect),
-                    gtk_marshal_VOID__VOID,
-                   GTK_TYPE_NONE, 0);
-}
-
diff --git a/gtk/gtkdata.h b/gtk/gtkdata.h
deleted file mode 100644 (file)
index 04a63f6..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/* GTK - The GIMP Toolkit
- * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-/*
- * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
- * file for a list of people on the GTK+ Team.  See the ChangeLog
- * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
- */
-
-#ifndef __GTK_DATA_H__
-#define __GTK_DATA_H__
-
-
-#include <gdk/gdk.h>
-#include <gtk/gtkobject.h>
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-
-#define GTK_TYPE_DATA            (gtk_data_get_type ())
-#define GTK_DATA(obj)            (GTK_CHECK_CAST ((obj), GTK_TYPE_DATA, GtkData))
-#define GTK_DATA_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_DATA, GtkDataClass))
-#define GTK_IS_DATA(obj)         (GTK_CHECK_TYPE ((obj), GTK_TYPE_DATA))
-#define GTK_IS_DATA_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_DATA))
-#define GTK_DATA_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_DATA, GtkDataClass))
-
-
-typedef struct _GtkData       GtkData;
-typedef struct _GtkDataClass  GtkDataClass;
-
-struct _GtkData
-{
-  GtkObject object;
-};
-
-struct _GtkDataClass
-{
-  GtkObjectClass parent_class;
-
-  void (* disconnect) (GtkData *data);
-};
-
-
-GtkType gtk_data_get_type (void) G_GNUC_CONST;
-
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-
-#endif /* __GTK_DATA_H__ */
index 9a9829b45e5f9ed8bbd98d0cdfed8b90b283b7ee..5a8d86f1a12af2fe62d71396583ad6f0e53e91cb 100644 (file)
@@ -217,9 +217,6 @@ static void  gtk_text_size_allocate  (GtkWidget      *widget,
                                      GtkAllocation  *allocation);
 static void  gtk_text_adjustment     (GtkAdjustment  *adjustment,
                                      GtkText        *text);
-static void  gtk_text_disconnect     (GtkAdjustment  *adjustment,
-                                     GtkText        *text);
-
 static void   gtk_text_insert_text       (GtkOldEditable *old_editable,
                                          const gchar    *new_text,
                                          gint            new_text_length,
@@ -239,6 +236,9 @@ static void   gtk_text_set_selection     (GtkOldEditable *old_editable,
 static void   gtk_text_real_set_editable (GtkOldEditable *old_editable,
                                          gboolean        is_editable);
 
+static void  gtk_text_adjustment_destroyed (GtkAdjustment  *adjustment,
+                                            GtkText        *text);
+
 /* Event handlers */
 static gint  gtk_text_expose            (GtkWidget         *widget,
                                         GdkEventExpose    *event);
@@ -844,8 +844,8 @@ gtk_text_set_adjustments (GtkText       *text,
       gtk_signal_connect (GTK_OBJECT (text->hadj), "value_changed",
                          (GtkSignalFunc) gtk_text_adjustment,
                          text);
-      gtk_signal_connect (GTK_OBJECT (text->hadj), "disconnect",
-                         (GtkSignalFunc) gtk_text_disconnect,
+      gtk_signal_connect (GTK_OBJECT (text->hadj), "destroy",
+                         (GtkSignalFunc) gtk_text_adjustment_destroyed,
                          text);
       gtk_text_adjustment (hadj, text);
     }
@@ -862,8 +862,8 @@ gtk_text_set_adjustments (GtkText       *text,
       gtk_signal_connect (GTK_OBJECT (text->vadj), "value_changed",
                          (GtkSignalFunc) gtk_text_adjustment,
                          text);
-      gtk_signal_connect (GTK_OBJECT (text->vadj), "disconnect",
-                         (GtkSignalFunc) gtk_text_disconnect,
+      gtk_signal_connect (GTK_OBJECT (text->vadj), "destroy",
+                         (GtkSignalFunc) gtk_text_adjustment_destroyed,
                          text);
       gtk_text_adjustment (vadj, text);
     }
@@ -2194,8 +2194,8 @@ gtk_text_adjustment (GtkAdjustment *adjustment,
 }
 
 static void
-gtk_text_disconnect (GtkAdjustment *adjustment,
-                    GtkText       *text)
+gtk_text_adjustment_destroyed (GtkAdjustment *adjustment,
+                               GtkText       *text)
 {
   g_return_if_fail (adjustment != NULL);
   g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
index faf7254340fd812f61be2c0eb7634804b7ab0505..acc5c6a8d49d09fa90983f8aa257a9276255784f 100644 (file)
@@ -62,7 +62,7 @@ static gint gtk_tooltips_timeout           (gpointer     data);
 static gint gtk_tooltips_paint_window      (GtkTooltips *tooltips);
 static void gtk_tooltips_draw_tips         (GtkTooltips *tooltips);
 
-static GtkDataClass *parent_class;
+static GtkObjectClass *parent_class;
 static const gchar  *tooltips_data_key = "_GtkTooltipsData";
 
 GtkType
@@ -84,7 +84,7 @@ gtk_tooltips_get_type (void)
         (GtkClassInitFunc) NULL,
       };
 
-      tooltips_type = gtk_type_unique (GTK_TYPE_DATA, &tooltips_info);
+      tooltips_type = gtk_type_unique (GTK_TYPE_OBJECT, &tooltips_info);
     }
 
   return tooltips_type;
@@ -96,7 +96,7 @@ gtk_tooltips_class_init (GtkTooltipsClass *class)
   GtkObjectClass *object_class;
 
   object_class = (GtkObjectClass*) class;
-  parent_class = gtk_type_class (GTK_TYPE_DATA);
+  parent_class = gtk_type_class (GTK_TYPE_OBJECT);
 
   object_class->destroy = gtk_tooltips_destroy;
 }
index 12adf631d5eda9b38a97006239750a62a7c566f8..1f2b13b009a280e12b56719cd011aee47ce5eed4 100644 (file)
@@ -28,7 +28,7 @@
 #define __GTK_TOOLTIPS_H__
 
 #include <gdk/gdk.h>
-#include <gtk/gtkdata.h>
+#include <gtk/gtkobject.h>
 
 
 #ifdef __cplusplus
@@ -58,7 +58,7 @@ struct _GtkTooltipsData
 
 struct _GtkTooltips
 {
-  GtkData data;
+  GtkObject parent_instance;
 
   GtkWidget *tip_window;
   GtkWidget *tip_label;
@@ -74,7 +74,7 @@ struct _GtkTooltips
 
 struct _GtkTooltipsClass
 {
-  GtkDataClass parent_class;
+  GtkObjectClass parent_class;
 };
 
 GtkType                 gtk_tooltips_get_type     (void) G_GNUC_CONST;